import request from '@/utils/request'

export function listScrap(query) {
  return request({
    url: '/system/scrap/list',
    method: 'get',
    params: query
  })
}
export function listScrapDetail(query) {
  return request({
    url: '/system/scrapDetail/list',
    method: 'get',
    params: query
  })
}

export function delScrap(compFeeIds) {
  return request({
    url: '/system/scrap/' + compFeeIds,
    method: 'delete'
  })
}
export function scrapAdd(data) {
  return request({
    url: '/system/scrap',
    method: 'post',
    data: data
  })
}
export function updategscrap(data) {
  return request({
    url: '/system/scrap',
    method: 'put',
    data: data
  })
}
export function scrapInfo(query) {
  return request({
    url: '/system/scrap/' + query,
    method: 'get',
  })
}